#ifndef __RELAY_H
#define __RELAY_H

#include "main.h"
#include "bsp_gpio_out.h"

#define RELAY_ON  GPIO_PIN_SET
#define RELAY_OFF GPIO_PIN_RESET

#define relay_switch(state) 	bsp_gpio_switch(RELAY, state)
#define relay_open() 					relay_switch(RELAY_ON)
#define relay_close() 				relay_switch(RELAY_OFF)

void relay_init(void);


#endif

